<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<kml xmlns="http://www.opengis.net/kml/2.2"> <xsl:text>&#xa;</xsl:text>
		<Document><xsl:text>&#xa;</xsl:text>
		<Style id="taskStyle">
      	<IconStyle>
	        <Icon>
	          <href>http://maps.google.com/mapfiles/kml/shapes/caution.png</href>
	        </Icon>
      	</IconStyle>
    	</Style><xsl:text>&#xa;</xsl:text>
		<xsl:for-each select="//post[type='task']">
			<Placemark>
				<name>
					<xsl:value-of select="name"></xsl:value-of>
				</name>
				<description>
					<xsl:value-of select="content"></xsl:value-of>
				</description>
				<styleUrl>#taskStyle</styleUrl>
				<Point>
					<coordinates><xsl:value-of select="geotag/lon"></xsl:value-of>,<xsl:value-of select="geotag/lat"></xsl:value-of></coordinates>
				</Point>
			</Placemark>
		</xsl:for-each>
		</Document>
		</kml>
	</xsl:template>
</xsl:stylesheet>